from models import TVEpisodeScraper, TVEpisodeFile
from path import path
from datetime import datetime

scraper = TVEpisodeScraper()

files = scraper.get_file_list()

for file in files:
    file.modified = datetime.fromtimestamp(path(file.filepath).mtime)

scraper.session.commit()
